package c.h.a.w.k;

import java.util.List;

/* compiled from: AnalyzeRepeatFile */
public class f implements Runnable {
    public final /* synthetic */ List a;
    public final /* synthetic */ e b;

    public f(e eVar, List list) {
        this.b = eVar;
        this.a = list;
    }

    /* JADX WARNING: Missing block: B:46:?, code skipped:
            r6.close();
     */
    public void run() {
        /*
        r12 = this;
        r0 = r12.b;
        r0 = r0.i;
        r0 = r0.get();
        r0 = (c.h.a.w.k.e.d) r0;
        if (r0 != 0) goto L_0x000d;
    L_0x000c:
        return;
    L_0x000d:
        r1 = r0.b;
        r1.clear();
        r2 = r12.a;
        r2 = r2.iterator();
    L_0x0018:
        r3 = r2.hasNext();
        if (r3 == 0) goto L_0x00cc;
    L_0x001e:
        r3 = r2.next();
        r3 = (c.h.a.w.e) r3;
        r4 = r12.b;
        r4 = r4.f;
        if (r4 == 0) goto L_0x002b;
    L_0x002a:
        return;
    L_0x002b:
        r4 = new java.io.File;
        r5 = r3.b();
        r4.<init>(r5);
        r5 = r4.exists();
        if (r5 != 0) goto L_0x003b;
    L_0x003a:
        goto L_0x0018;
    L_0x003b:
        r5 = r4.getName();
        r5 = r5.toLowerCase();
        r6 = ".nomedia";
        r5 = r5.equalsIgnoreCase(r6);
        if (r5 == 0) goto L_0x004c;
    L_0x004b:
        goto L_0x0018;
    L_0x004c:
        r5 = r4.length();
        r7 = 0;
        r9 = (r5 > r7 ? 1 : (r5 == r7 ? 0 : -1));
        if (r9 > 0) goto L_0x0057;
    L_0x0056:
        goto L_0x0018;
    L_0x0057:
        r5 = r0.a;
        r6 = c.h.a.m0.j.a;
        r6 = r4.isFile();
        r7 = 0;
        if (r6 != 0) goto L_0x0063;
    L_0x0062:
        goto L_0x00bf;
    L_0x0063:
        r6 = new java.io.FileInputStream;	 Catch:{ Exception -> 0x00bb }
        r6.<init>(r4);	 Catch:{ Exception -> 0x00bb }
        r4 = "MD5";
        r4 = java.security.MessageDigest.getInstance(r4);	 Catch:{ all -> 0x00af }
    L_0x006e:
        r8 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;
        r9 = 0;
        r8 = r6.read(r5, r9, r8);	 Catch:{ all -> 0x00af }
        r10 = -1;
        if (r8 == r10) goto L_0x007c;
    L_0x0078:
        r4.update(r5, r9, r8);	 Catch:{ all -> 0x00af }
        goto L_0x006e;
    L_0x007c:
        r6.close();	 Catch:{ Exception -> 0x00bb }
        r4 = r4.digest();
        r5 = new java.lang.StringBuilder;
        r5.<init>();
        if (r4 == 0) goto L_0x00bf;
    L_0x008a:
        r6 = r4.length;
        if (r6 > 0) goto L_0x008e;
    L_0x008d:
        goto L_0x00bf;
    L_0x008e:
        r6 = r4.length;
        r7 = 0;
    L_0x0090:
        if (r7 >= r6) goto L_0x00aa;
    L_0x0092:
        r8 = r4[r7];
        r8 = r8 & 255;
        r8 = java.lang.Integer.toHexString(r8);
        r10 = r8.length();
        r11 = 2;
        if (r10 >= r11) goto L_0x00a4;
    L_0x00a1:
        r5.append(r9);
    L_0x00a4:
        r5.append(r8);
        r7 = r7 + 1;
        goto L_0x0090;
    L_0x00aa:
        r7 = r5.toString();
        goto L_0x00bf;
    L_0x00af:
        r4 = move-exception;
        throw r4;	 Catch:{ all -> 0x00b1 }
    L_0x00b1:
        r5 = move-exception;
        r6.close();	 Catch:{ all -> 0x00b6 }
        goto L_0x00ba;
    L_0x00b6:
        r6 = move-exception;
        r4.addSuppressed(r6);	 Catch:{ Exception -> 0x00bb }
    L_0x00ba:
        throw r5;	 Catch:{ Exception -> 0x00bb }
    L_0x00bb:
        r4 = move-exception;
        r4.printStackTrace();
    L_0x00bf:
        r4 = android.text.TextUtils.isEmpty(r7);
        if (r4 != 0) goto L_0x0018;
    L_0x00c5:
        r4 = r12.b;
        r4.b(r7, r3, r1);
        goto L_0x0018;
    L_0x00cc:
        r0 = r12.b;
        java.util.Objects.requireNonNull(r0);
        r2 = c.h.a.w.k.e.class;
        monitor-enter(r2);
        r1 = r1.entrySet();	 Catch:{ all -> 0x010c }
        r1 = r1.iterator();	 Catch:{ all -> 0x010c }
    L_0x00dc:
        r3 = r1.hasNext();	 Catch:{ all -> 0x010c }
        if (r3 == 0) goto L_0x010a;
    L_0x00e2:
        r3 = r1.next();	 Catch:{ all -> 0x010c }
        r3 = (java.util.Map.Entry) r3;	 Catch:{ all -> 0x010c }
        r4 = r3.getKey();	 Catch:{ all -> 0x010c }
        r4 = (java.lang.String) r4;	 Catch:{ all -> 0x010c }
        r3 = r3.getValue();	 Catch:{ all -> 0x010c }
        r3 = (java.util.List) r3;	 Catch:{ all -> 0x010c }
        r3 = r3.iterator();	 Catch:{ all -> 0x010c }
    L_0x00f8:
        r5 = r3.hasNext();	 Catch:{ all -> 0x010c }
        if (r5 == 0) goto L_0x00dc;
    L_0x00fe:
        r5 = r3.next();	 Catch:{ all -> 0x010c }
        r5 = (c.h.a.w.e) r5;	 Catch:{ all -> 0x010c }
        r6 = r0.b;	 Catch:{ all -> 0x010c }
        r0.b(r4, r5, r6);	 Catch:{ all -> 0x010c }
        goto L_0x00f8;
    L_0x010a:
        monitor-exit(r2);	 Catch:{ all -> 0x010c }
        return;
    L_0x010c:
        r0 = move-exception;
        monitor-exit(r2);	 Catch:{ all -> 0x010c }
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.h.a.w.k.f.run():void");
    }
}
